x86: adjust xsave structure attributes
authorJan Beulich <jbeulich@suse.com>
Mon, 1 Feb 2016 12:53:16 +0000 (13:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 1 Feb 2016 12:53:16 +0000 (13:53 +0100)
commitb011a5bf41e3101a9f2108e6f25281f9279d9628
tree6d1bd2f25514c223c2583bc9423e19363327b669
parent104a409ebce4499a6c04e5d28075cd6ee4991977
x86: adjust xsave structure attributes

The packed attribute was pointlessly used here - there are no
misaligned fields, and hence even if the attribute took effect, it
would at best lead to the compiler generating worse code.

At the same time specify the required alignment of the fpu_sse sub-
structure, such that the various typeof() uses on that field obtain
pointers to properly aligned memory (knowledge which a compiler may
want to make use of).

Also add suitable build-time checks.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/i387.c
xen/arch/x86/xstate.c
xen/include/asm-x86/xstate.h